package cn.itcast.ssh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import cn.itcast.ssh.dao.UserDao;
import cn.itcast.ssh.entity.User;

@Service
@Transactional(readOnly = true, isolation = Isolation.DEFAULT, propagation = Propagation.SUPPORTS)
public class UserServiceImpl implements cn.itcast.ssh.service.UserService {
	@Autowired
	private UserDao userDao;

	@Override
	public List<User> findAll() {
		List<User> list = userDao.queryAll();
		return list;
	}

}
